﻿package com.artionscript.tools.stamps.grime {

	import com.artionscript.tools.FillVO;
	import com.artionscript.tools.LineVO;
	import com.artionscript.tools.stamps.ArcStamp;
	import com.artionscript.tools.Tool;
	import flash.display.Sprite;
	/**
	 * ...
	 * @author Trevor Boyle
	 */
	public class GrimeStamp5 extends Tool
	{
		
		private const DEFAULT_WIDTH:Number = 50;
		
		public function GrimeStamp5(width:Number=0, height:Number=0, fillVO:FillVO=null, lineVO:LineVO=null, centre:Boolean=false) 
		{
			var container:Sprite = new Sprite();
			
			var s:Sprite = new Sprite;
			setFillAndLineStyle(fillVO, lineVO, s);
			s.graphics.drawPath(Vector.<int>([1,3,3,3,3,3,3,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,1,3,3,3,2,1,3,3,3,2,1,3,3,3,3,2,1,3,3,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,1,3,3,3,3,3,2,1,3,3,3,3,2]),Vector.<Number>([-27.285,72.436,-25.867072808466347,72.71344670428567,-25.903,75.27775000000001,-25.90465509942442,75.39588272141815,-26.02725,77.513125,-26.105429291957535,78.86329944824351,-25.985,79.58200000000001,-26.90014592199852,79.55234722710844,-27.934,80.23100000000001,-29.131403921755165,78.98313480673978,-29.375,75.8775,-29.64644531580197,72.4168120162067,-27.285,72.436,-27.285,72.436,88.997,67.239,81.96965777598862,69.87467954350356,85.749,78.28200000000001,84.80670978735014,78.42668416957069,83.94287499999999,77.49062500000001,83.13642733311177,76.61675103194038,81.851,76.98500000000001,79.73372117003407,80.27199867052103,73.75675000000001,79.8845,72.38060113696,79.79528159159602,68.96525,79.28815625000001,66.16130953024437,78.87181567138374,64.962,78.93200000000002,62.62357947163015,72.6040813073662,58.465,71.13600000000001,61.25407281467205,67.37824355459597,57.815000000000005,62.04200000000001,59.71667923769206,61.10029209418012,61.124375,57.87925000000001,62.88571222499364,53.84901740595615,63.662000000000006,52.94700000000001,64.92056554556048,53.67607961721646,67.708875,52.605750000000015,71.7232509343764,51.064778480370855,72.10600000000001,50.99700000000001,75.43140534910668,51.34854128669958,79.50862500000001,53.665625000000006,84.11795543251068,56.285107242525356,86.399,56.845000000000006,84.90392128829568,62.690643634617956,88.997,67.239,88.997,67.239,-74.706,34.11,-75.19481753694909,35.21934897467887,-79.903,37.357,-80.13037669832873,35.19692136587712,-78.604,31.509999999999998,-74.83015358078676,31.108659366794303,-74.706,34.11,-74.706,34.11,-45.473,32.161,-45.25680310320196,36.3408066714288,-48.66499999999999,36.860875,-52.030697471663764,37.37445819708856,-51.32,32.161,-48.39777496729176,27.815911469690366,-45.473,32.161,-45.473,32.161,-88.997,-10.064,-88.76014398157261,-12.416769783045412,-86.142875,-13.514875,-83.51913398806158,-14.615695631517891,-81.203,-13.311,-81.52595472241984,-9.941530940561126,-84.16024999999999,-8.807500000000001,-86.81493230680154,-7.664692700114223,-88.997,-10.064,-88.997,-10.064,-88.997,-68.531,-86.22011732005683,-68.1969119156084,-84.45,-65.281,-87.22632731446464,-65.6135372655843,-88.997,-68.531,-88.997,-68.531,31.181,50.351,30.440379599019263,50.00277375328432,29.43640625,49.350375,28.4264023538073,48.69405749582312,27.99575,48.49,26.398341515532643,47.733094407205215,24.035,48.402,24.56987574605134,53.26229655192932,22.087,52.948,21.925091828121772,52.31719058347131,21.629628906249998,51.031064453125,21.32725098529101,49.71483789271104,21.16346875,49.070640624999996,20.578429936097653,46.769533885608205,19.880499999999998,45.320125,17.9543152606932,41.31996806149097,13.642,40.606,13.110282453697458,35.46431752023698,12.343,35.410000000000004,10.357288344929152,36.59035463978436,5.593875000000001,37.75475,0.5891805909066289,38.978125451019594,-1.3000000000000007,39.957,-5.015398658760048,35.04437073505938,-8.445,34.76,-9.751323053605114,35.38886959260133,-11.851,38.82425,-13.629332464776247,41.73386355642009,-16.241,41.906,-18.831875517408907,40.96633235951417,-18.839,38.658,-18.511462473066633,37.11121485078163,-16.147125,35.50425,-13.86513621753843,33.953254930528225,-13.642,32.163000000000004,-15.386980361610847,31.237997694721123,-16.846375000000002,27.246250000000003,-18.286013121776506,23.308540484925267,-20.137,22.418000000000006,-27.180267396003778,26.417546857502707,-36.57062500000001,26.938125000000007,-45.03143271143692,27.407171201240768,-52.618,25.018000000000008,-53.16800705998533,21.32218819770329,-58.23875000000001,20.779750000000007,-63.83753419621794,20.180825060468848,-64.962,17.872000000000007,-65.78500639360446,18.469717551438265,-67.22821875,20.49648437500001,-67.48920870021209,20.863004083640817,-68.46127734375,22.27203320312501,-69.22680424448146,23.381676747384695,-69.68700000000001,23.997625000000006,-72.60148005856348,27.898506044266732,-73.40700000000001,25.018000000000008,-70.78229064585854,24.64232595122022,-68.39550000000001,20.93187500000001,-66.12701677035895,17.405342091948857,-66.26100000000001,14.622000000000007,-66.35080801336616,12.736586089763758,-68.17850000000001,10.882250000000006,-70.35880941113294,8.670156027119091,-70.80700000000002,7.477000000000007,-71.9895249842513,4.332453581917729,-71.67550000000001,-0.5374999999999921,-71.63848991802354,-1.1114587304434944,-71.52834765625002,-2.480246093749992,-71.42945205911312,-3.7092661035801466,-71.39115625000002,-4.392593749999992,-71.26860716599222,-6.579286735089953,-71.45800000000001,-8.113999999999992,-71.87313059719872,-8.565141926112318,-73.40650000000002,-8.763874999999992,-74.94013076179749,-8.962641947445217,-75.35500000000002,-9.412999999999991,-75.16809795702987,-10.867805091227059,-74.06675000000001,-12.99762499999999,-72.95385554612037,-15.149773872757766,-72.75600000000001,-16.55899999999999,-73.46419909215439,-17.426068398767196,-74.59625000000003,-18.94224999999999,-75.93589322981789,-20.73646473291457,-76.41400000000002,-21.34724999999999,-78.60298830347627,-24.143700267952276,-80.55200000000002,-25.65399999999999,-80.2158624856827,-26.067423765035425,-79.41531250000003,-26.95346874999999,-78.66733289246702,-27.78132908597289,-78.28875000000002,-28.26249999999999,-77.0433832029359,-29.84533507249232,-76.65400000000002,-31.50099999999999,-79.22857160213114,-35.11810900435018,-77.83250000000002,-40.62599999999999,-76.57963546073556,-45.56889927826752,-73.40700000000002,-48.39199999999999,-73.57960041411123,-48.91204280615321,-74.51975000000003,-50.52574999999999,-75.25803913308731,-51.792976517018054,-75.35500000000002,-52.93699999999999,-74.88615444225137,-53.14843735414913,-74.10463085937502,-53.47341992187499,-73.12478644091489,-53.880870652806315,-72.84567187500002,-54.001109375,-71.36597385986094,-54.6385429607022,-70.476875,-55.20537499999999,-67.9920872251035,-56.78951528546507,-67.56000000000002,-59.43499999999999,-67.59849201634259,-60.316509473164174,-69.138125,-61.84862499999999,-70.34043203387021,-63.045061614549894,-69.50800000000001,-63.98099999999999,-64.80600038069636,-63.88229597108266,-62.93475000000001,-64.89025,-59.78884943226121,-66.58479776578088,-61.06400000000001,-71.77699999999999,-52.76065206380278,-69.03634582943944,-51.31900000000001,-73.72599999999998,-51.4217310333757,-74.194476533153,-52.83462500000001,-76.59062499999999,-53.89643316170775,-78.39136168574034,-53.26800000000001,-78.92199999999998,-51.89446215495961,-76.34911518008022,-48.47075000000001,-76.53737499999998,-45.22422374148356,-76.71589189076946,-43.525000000000006,-78.92199999999998,-43.047449528618245,-78.69646230352627,-41.329375000000006,-76.89462499999998,-40.06966136675743,-75.57349545740522,-38.32600000000001,-75.67499999999998,-36.32593474601861,-75.3961720500554,-34.980500000000006,-76.87512499999998,-33.32240506216453,-78.69776590239724,-32.48100000000001,-78.92199999999998,-31.47965488303622,-78.8903283390215,-30.080500000000008,-77.75074999999998,-28.824669289442962,-76.72790578698249,-27.28400000000001,-76.97399999999999,-26.302519284881836,-77.08555276603073,-25.503875000000008,-78.76637499999998,-24.760274518129698,-80.33135235822755,-23.38700000000001,-80.222,-23.25949170130949,-79.84962654869751,-22.870437500000012,-78.30142187499999,-22.568922876354065,-77.1015727332978,-22.25225000000001,-76.48312499999999,-21.303313021407376,-74.6298942143076,-18.839000000000013,-75.02499999999999,-18.19012069086248,-75.27065208203827,-17.487750000000013,-77.572,-16.922459855643133,-79.42419758410266,-14.941000000000013,-78.922,-14.941000000000013,-73.076,-14.00576006951034,-73.12421762287543,-12.787500000000012,-72.30525,-11.660767541083626,-71.5478112341819,-10.394000000000013,-71.776,-9.088960965131209,-71.72671677839443,-7.871250000000012,-73.15212499999998,-6.691562521792838,-74.53302430904127,-5.1970000000000125,-74.37599999999999,-4.652439245003702,-73.83657176861344,-5.016625000000013,-72.31324999999998,-5.478402089751432,-70.38172169771254,-5.1970000000000125,-69.178,1.6051363843167772,-65.2819309793892,6.495999999999987,-66.58,7.536819367539371,-64.97386834323292,7.550499999999987,-62.65125,7.570610609417702,-59.236987504340654,7.7949999999999875,-58.135999999999996,9.000338459617966,-56.64000450825714,14.157999999999989,-53.77924999999999,18.470548691405263,-51.38724676085331,19.48899999999999,-48.391999999999996,18.236820171605153,-48.512167466146366,17.272249999999993,-47.684374999999996,15.985985402937837,-46.5805049299283,15.59099999999999,-46.44199999999999,14.655059069236385,-42.734301123252195,17.132999999999992,-40.839,20.468086572602157,-38.28809442807082,20.786999999999992,-37.34799999999999,20.433073558261817,-36.619651376253486,18.838499999999993,-36.04787499999999,17.244073497173396,-35.476151354348616,16.889999999999993,-34.74699999999999,16.80149672034866,-28.27361725978836,18.838999999999995,-27.600999999999992,22.78849324159849,-27.59184175480208,23.384999999999994,-26.953999999999994,24.13010751723713,-25.57335960041354,23.68274999999999,-24.61799999999999,22.795895830489457,-22.724068161676655,22.736999999999995,-22.404999999999994,24.04552453457866,-22.09382648263068,26.634249999999994,-21.430499999999995,29.21655835305005,-20.76881781709701,30.532999999999994,-20.455999999999992,30.502585413636602,-19.280850909495644,31.723999999999993,-17.75037499999999,32.8305754048409,-16.36379666856556,32.48,-14.611999999999991,30.321227374173862,-13.068729192774615,27.192625,-13.604249999999992,26.078069912927766,-13.795027659971458,24.367203124999996,-14.332999999999991,21.220714593852435,-15.322395439737678,21.437999999999995,-15.258999999999991,21.24842702262323,-14.883332448501077,19.790124999999996,-13.982749999999992,18.67994639987288,-13.297153089027113,18.838999999999995,-12.011999999999992,21.239027953476796,-10.272570108290628,19.910749999999997,-7.964999999999992,19.536878537378758,-7.315486387860725,18.593187499999996,-6.236531249999992,17.71238725213408,-5.229481362672824,17.539999999999996,-4.865999999999992,15.423154560216924,-0.40437361944025785,15.590999999999996,4.8790000000000076,15.817338432776152,12.003500941732138,21.464124999999996,12.449000000000009,26.205340574377363,12.8230547031988,32.48,8.775000000000007,38.624105576706384,15.178935796643415,45.473,15.272000000000007,45.93625973452682,17.01389274692367,47.141703125,19.322281250000007,47.20654724053551,19.446455816783736,48.182896484375,21.25949609375001,48.817821022756526,22.438524774504703,49.202374999999996,23.251250000000006,51.55397283496318,28.221170983250367,50.669,33.461000000000006,50.48056227679861,34.58173223441018,49.084374999999994,36.4855,47.887667327250924,38.11726783664554,48.071999999999996,39.309000000000005,48.40750863496702,41.48746536936732,51.113625,43.18450000000001,53.76193604021938,44.84528429073187,53.919,46.45400000000001,53.12649740259743,46.00131428571431,52.0839375,45.2028125,50.14524590163909,43.71795901639325,50.34,43.8605,48.195090410958876,42.290635616438344,46.122,41.906000000000006,44.65762190819797,42.76235449207455,42.899984374999995,44.529828125,40.16960421457224,47.27548805218548,39.973375000000004,47.449625,36.26489800755043,50.74058687799184,31.181,50.351,31.181,50.351,9.744,4.877,9.021431604158916,7.363108450629209,12.623750000000001,10.290624999999999,16.48525850281112,13.428779045618754,16.240000000000002,16.569,17.312135710387484,16.719525013643807,17.540000000000003,15.921999999999999,17.693654883448993,13.245345233771728,14.957875000000001,9.882375,13.067715500918238,7.558887583870879,9.744,4.877,9.744,4.877,56.517,47.101,56.43938131431405,47.00840846502795,59.25375,49.396125,61.01834585300053,50.89321197271323,60.414,51.65,60.49106802269708,51.741907641962996,57.676125,49.354124999999996,55.91207200077325,47.85776251696096,56.517,47.101,56.517,47.101]),"evenOdd");
			s.graphics.endFill();
			container.addChild(s);
			
			if (width == 0) {
				width = DEFAULT_WIDTH;
			}
			
			if (height == 0) {
				height = (width / container.width) * container.height;
			}
			
			container.width = width;
			container.height = height;
			
			if (centre) {
				container.x = 0 - container.width / 2;
				container.y = 0 - container.height / 2;
			}
			
			this.addChild(container);
		}
		
	}

}